//
//  AminoProgramingTests.m
//  AminoProgramingTests
//
//  Created by xiute on 2018/10/25.
//  Copyright © 2018 cuijin. All rights reserved.
//

#import <XCTest/XCTest.h>
#import "AminoPrograming.h"


@interface AminoProgramingTests : XCTestCase

@end

@implementation AminoProgramingTests

- (void)setUp {
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
}

- (void)testExample {
    NSArray *ipAddress = @[@"172.168.5.1", @"172.16d8.5.1", @"172.16 8.5.1", @"172.168. 5.1", @".172.168. 5"];
    [ipAddress enumerateObjectsUsingBlock:^(NSString *  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        @try {
            NSLog(@"转换结果：\n%ld", [AminoPrograming convertIpAddress:obj]);
        } @catch (NSException *exception) {
            
            NSLog(@"错误  \n%@", exception.reason);
        } @finally {
            
        }
    }];
}

- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

@end
